package day0325;

public class Test1 {

    public static int add(int a, int b, int c, int d){
        return  a+b+c+d;
    }

    public static int  sub(int a, int b){
        return a-b;
    }

    public static int  square(int a, int b){
        return a*b;
    }

    public static void main(String[] args) {
        //文件名
        int rs=Test1.add(5,6,8,7);//调用一下
        System.out.println(rs);
        int rs2=Test1.sub(8,3);//调用一下
        System.out.println(rs2);
        int rs3=Test1.square(8,3);//调用一下
        System.out.println(rs3);

        //文件名.方法名(数值);
        Test1.square(5);
    }


    //
    public static void square(int num){
        System.out.println(num*num);
    }










}
